Shear Transformations
Introduction
Shear transformations are a special class of linear transformations that distort shapes while preserving certain geometric features. They are among the simplest transformations that change angles but keep areas (in some cases) and parallelism intact.
In this article, we explore:
- What shear transformations are
- How they act on vectors and shapes
- Their matrix forms
- How to visualize and compute them
- Exercises to build intuition
What Is a Shear?
A shear transformation is a linear transformation that “slides” points in a fixed direction, with the amount of sliding proportional to their coordinate in another direction.
Key characteristics:
- Lines remain parallel to their original direction.
- Areas may or may not be preserved (depending on the shear).
- Angles are generally not preserved.
- The origin stays fixed (because the transformation is linear).
A shear distorts shapes into slanted versions of themselves—rectangles become parallelograms, squares become rhombi.
Matrix Forms of Shears
In two dimensions, the most common shears are:
Horizontal shear
$$\begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}$$

Effect:
- Points are shifted horizontally.
- The $y$-coordinate stays the same.
- The amount of horizontal shift is $k$ times the $y$-value.
Vertical shear
$$\begin{pmatrix} 1 & 0 \\ k & 1 \end{pmatrix}$$

Effect:
- Points are shifted vertically.
- The $x$-coordinate stays the same.
- The amount of vertical shift is $k$ times the $x$-value.
General properties
- Determinant is always $1$, so area is preserved.
- Shears are invertible as long as $k$ is finite.
- Inverse of a shear is another shear with parameter $-k$.
Geometric Interpretation
A shear transformation:
- Keeps one family of lines fixed in direction.
- Slides points along lines parallel to a chosen axis.
- Turns right angles into slanted angles.
Examples:
- A horizontal shear keeps vertical lines vertical.
- A vertical shear keeps horizontal lines horizontal.
Visual intuition:
- Imagine pushing the top of a deck of cards sideways while keeping the bottom fixed.
The deck becomes slanted, but the cards remain parallel.
Computing a Shear
Given a shear matrix $S$ and a vector $v$, compute $Sv$ using matrix multiplication.
Example (horizontal shear): $$S = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}, \quad v = \begin{pmatrix} 3 \\ 1 \end{pmatrix}$$ Then: $$Sv = \begin{pmatrix} 1\cdot 3 + 2\cdot 1 \\ 0\cdot 3 + 1\cdot 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 1 \end{pmatrix}$$ Interpretation:
- The point moved 2 units horizontally because its $y$-value is 1.
Applications
Shears appear in:
- Computer graphics (skewing images)
- Geometry and tiling
- Modeling simple physical deformations
- Constructing more complex transformations (e.g., decomposing rotations)
They are also useful pedagogically because they:
- Are easy to compute
- Demonstrate how linear transformations distort space
- Preserve some structure while altering other structure
Calculator
Creating shear matrices
- Shear matrices are easy to create, so no helper functions exist for them
[1, k; 0, 1] [1, 0; k, 1]
Exercises
Exercises
- Apply the horizontal shear
$S = \begin{pmatrix}1 & 3 \\ 0 & 1\end{pmatrix}$
to the vector $v = (2,4)$. - Apply the vertical shear
$T = \begin{pmatrix}1 & 0 \\ -2 & 1\end{pmatrix}$
to the vector $w = (5,1)$. - A shear sends $(1,0)$ to $(1,0)$ and $(0,1)$ to $(4,1)$.
Write down the matrix of this shear. - Describe in words what a vertical shear does to a square.
- True or false: A shear can change the area of a shape.
- Find the inverse of the shear
$S = \begin{pmatrix}1 & -5 \\ 0 & 1\end{pmatrix}$.